<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>项目演练</title>
</head>
<body>
    <style>
        .demo{
            width:110px;
            height:1.2rem;
            background:linear-gradient(rgb(60, 45, 112),rgb(112, 110, 109));
            color:white;
            font-size:1rem;
            line-height: 1.2rem;
        }
        .demo::before{
            content:"";
            display:inline-block;
            width:20px;
            height:20px;
            /* 二进制图片，好处在与不需解析地址 */
            background-image:url();
            background-size: 100% 100%;
        }
    </style>
    <div class="demo">姬教授贴吧</div>
</body>
</html>